package com.meida.boot.handler.company;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.PageInterceptor;
import com.meida.common.mybatis.model.ListModel;
import com.meida.common.mybatis.model.PageParams;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.system.client.entity.SysGroup;
import org.springframework.stereotype.Component;

/**
 * 企业分组
 */
@Component("companyGroupListHandler")
public class CompanyGroupListHandler implements PageInterceptor {

    @Override
    public void prepare(CriteriaQuery cq, PageParams pageParams, EntityMap entityMap) {

        cq.setTargetEntity(SysGroup.class);
    }
}
